<?php
/**
 * app 大话水浒任务系统
 * @author will
 */
class App_Overlord_Task {
	static $list = null;
	static $task_info = null;
	static $user_info = null;
	static $city_info = null;
	/**
	 * 类型对应表
	 * Enter description here ...
	 */
	public static function getTaskType(){
		$type = array(
				'freshman' => array(
					  'collect' => 0,
					  'endlnn' => 1,
					  'generals_equip' => 2,
					  'skill' => 3,
					  'train' => 4,
					  'cavalryman' => 5,
					  'recover' => 6
					) ,
				'main' => array(
					'lv3' => 0,
					'endlnn' => 1,
					'quicken' => 2,
					'tactics' => 3,
					'attack' => 4,
					'domain_1' => 5,
					'explore' => 6,
					'treasure' => 7,
					'exploit' => 8,
					'everyday' => 9,
					'energy' => 10,
					'staff' => 11,
					'build' => 12,
					'know' => 13,
					'weapon' => 14,
					'armour' => 15,
					'helm' => 16,
					'horse' => 17,
					'domain_2' => 18,
					'domain_3' => 19,
					'lv4' => 20,
					'domain_4' => 21,
					'lv5' => 22,
					'domain_5' => 23,
					'lv6' => 24,
					'domain_6' => 25,
					'lv7' => 26,
					'domain_7' => 27,
					'equip_1' => 28,
					'equip_2' => 29,
					'lv8' => 30,
					'domain_8' => 31,
					'equip_3' => 32,
					'equip_4' => 33,
					'lv9' => 34,
					'domain_9' => 35,
					'equip_5' => 36,
					'lv10' => 37,
					'domain_10' => 38,
					'equip_6' => 39,
					'lv11' => 40,
					'domain_11' => 41,
					'lv12' => 42,
					'domain_12' => 43,
					'lv13' => 44,
					'domain_13' => 45,
					'lv14' => 46,
					'domain_14' => 47,
					'lv15' => 48,
					'domain_15' => 49,
					'lv16' => 50,
					'domain_16' => 51,
					'general_1' => 52,
					'general_2' => 53,
					'general_3' => 54,
					'general_4' => 55,
					'general_5' => 56,
					'general_6' => 57,
					'general_7' => 58,
					'general_8' => 59,
					'general_9' => 60,
					'general_10' => 61,
					'general_11' => 62,
					'general_12' => 63,
					'general_13' => 64,
					'general_14' => 65,
					'general_15' => 66,
					'general_16' => 67,
					'general_17' => 68,
					'general_18' => 69,
					'troops_1' => 70,
					'troops_2' => 71,
					'troops_3' => 72,
					'troops_4' => 73,
					'troops_5' => 74,
					'troops_6' => 75,
					'troops_7' => 76,
					'troops_8' => 77,
					'troops_9' => 78,
					'troops_10' => 79,
					'troops_11' => 80,
					'troops_12' => 81,
					'troops_13' => 82,
					'troops_14' => 83,
					'troops_15' => 84,
					'troops_16' => 85,
					'troops_17' => 86,
					'troops_18' => 87,
					'troops_19' => 88,
					'troops_20' => 89,
					'troops_21' => 90,
					'troops_22' => 91,
					'troops_23' => 92,
					'troops_24' => 93,
					'troops_25' => 94,
					'lv17' => 95,
					'lv18' => 96,
					'lv19' => 97,
					'lv20' => 98,
					'lv21' => 99,
					'lv22' => 100,
					'lv23' => 101,
					'lv24' => 102,
					'lv25' => 103,
					'lv26' => 104,
					'lv27' => 105,
					'lv28' => 106,
					'lv29' => 107,
					'lv30' => 108,
					'lv31' => 109,
					'lv32' => 110,
					'lv33' => 111,
					'lv34' => 112,
					'lv35' => 113,
					'lv36' => 114,
					'lv37' => 115,
					'lv38' => 116,
					'lv39' => 117,
					'lv40' => 118,
					'lv41' => 119,
					'lv42' => 120,
					'lv43' => 121,
					'lv44' => 122,
					'lv45' => 123,
					'lv46' => 124,
					'lv47' => 125,
					'lv48' => 126,
					'lv49' => 127,
					'lv50' => 128,
					'lv51' => 129,
					'lv52' => 130,
					'lv53' => 131,
					'lv54' => 132,
					'lv55' => 133,
					'lv56' => 134,
					'lv57' => 135,
					'lv58' => 136,
					'lv59' => 137,
					'lv60' => 138,
					'lv61' => 139,
					'lv62' => 140,
					'lv63' => 141,
					'lv64' => 142,
					'lv65' => 143,
					'lv66' => 144,
					'lv67' => 145,
					'lv68' => 146,
					'lv69' => 147,
					'lv70' => 148,
					'lv71' => 149,
					'lv72' => 150,
					'lv73' => 151,
					'lv74' => 152,
					'lv75' => 153,
					'treasure_1' => 154
					)
				);
		return $type;
	}
	/**
	 * 判断是否完成任务
	 * Enter description here ...
	 */
	public static function getGo($type , $id){
		//可接任务
		$task = self::getEvent();
		//查询任务状态
		$state = self::getState($type , $id);

		foreach ($task as $k => $row){
			if ($row == $id && $state == 0){
				self::setState($type, $id , 1);
				break;
			}
		}
	}

	
	/**
	 * 任务触发器总入口
	 */
	public static function trigger($s_type , $data) {
		
		$call_method = 'trigger_' . $s_type;
		if( method_exists('App_Overlord_Task' , $call_method) ) {
			return self::$call_method($data);
		} else {
			return false;
		}
	}

	/**
	 * 功勋任务
	 * Enter description here ...
	 * @param $data
	 */
	public static function trigger_exploit($data) {
		$task_type = App_Overlord_Task::getTaskType();

		$exploit = $data['exploit'];

		//完成功勋15点任务
		if ($exploit >= 15){
			App_Overlord_Task::getGo('main' , $task_type['main']['exploit']);
		}
	}
	/**
	 * 扩充领土任务
	 * Enter description here ...
	 * @param $data
	 */
	public static function trigger_domain($data) {
		$task_type = App_Overlord_Task::getTaskType();

		$generals_city_count = $data['city_count'];

		if ($generals_city_count >= 2){
			App_Overlord_Task::getGo('main' , $task_type['main']['domain_1']);
		}
		if ($generals_city_count >= 3){
			App_Overlord_Task::getGo('main' , $task_type['main']['domain_2']);
		}
		if ($generals_city_count >= 4){
			App_Overlord_Task::getGo('main' , $task_type['main']['domain_3']);
		}
		if ($generals_city_count >= 6){
			App_Overlord_Task::getGo('main' , $task_type['main']['domain_4']);
		}
		if ($generals_city_count >= 8){
			App_Overlord_Task::getGo('main' , $task_type['main']['domain_5']);
		}
		if ($generals_city_count >= 10){
			App_Overlord_Task::getGo('main' , $task_type['main']['domain_6']);
		}
		if ($generals_city_count >= 12){
			App_Overlord_Task::getGo('main' , $task_type['main']['domain_7']);
		}
		if ($generals_city_count >= 14){
			App_Overlord_Task::getGo('main' , $task_type['main']['domain_8']);
		}
		if ($generals_city_count >= 16){
			App_Overlord_Task::getGo('main' , $task_type['main']['domain_9']);
		}
		if ($generals_city_count >= 18){
			App_Overlord_Task::getGo('main' , $task_type['main']['domain_10']);
		}
		if ($generals_city_count >= 20){
			App_Overlord_Task::getGo('main' , $task_type['main']['domain_11']);
		}
		if ($generals_city_count >= 22){
			App_Overlord_Task::getGo('main' , $task_type['main']['domain_12']);
		}
		if ($generals_city_count >= 24){
			App_Overlord_Task::getGo('main' , $task_type['main']['domain_13']);
		}
		if ($generals_city_count >= 26){
			App_Overlord_Task::getGo('main' , $task_type['main']['domain_14']);
		}
		if ($generals_city_count >= 28){
			App_Overlord_Task::getGo('main' , $task_type['main']['domain_15']);
		}
		if ($generals_city_count >= 30){
			App_Overlord_Task::getGo('main' , $task_type['main']['domain_16']);
		}
	}
	/**
	 * 升级任务
	 * Enter description here ...
	 * @param $data
	 */
	public static function trigger_lv($data) {
		$task_type = App_Overlord_Task::getTaskType();
		$user_lv = $data['lv'];
		if ($user_lv >= 3){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv3']);
		}

		if ($user_lv >= 4){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv4']);
		}

		if ($user_lv >= 5){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv5']);
		}

		if ($user_lv >= 6){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv6']);
		}

		if ($user_lv >= 7){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv7']);
		}

		if ($user_lv >= 8){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv8']);
		}

		if ($user_lv >= 9){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv9']);
		}

		if ($user_lv >= 10){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv10']);
		}

		if ($user_lv >= 11){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv11']);
		}

		if ($user_lv >= 12){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv12']);
		}

		if ($user_lv >= 13){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv13']);
		}

		if ($user_lv >= 14){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv14']);
		}

		if ($user_lv >= 15){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv15']);
		}

		if ($user_lv >= 16){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv16']);
		}

		if ($user_lv >= 17){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv17']);
		}

		if ($user_lv >= 18){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv18']);
		}

		if ($user_lv >= 19){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv19']);
		}

		if ($user_lv >= 20){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv20']);
		}

		if ($user_lv >= 21){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv21']);
		}

		if ($user_lv >= 22){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv22']);
		}

		if ($user_lv >= 23){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv23']);
		}

		if ($user_lv >= 24){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv24']);
		}

		if ($user_lv >= 25){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv25']);
		}

		if ($user_lv >= 26){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv26']);
		}

		if ($user_lv >= 27){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv27']);
		}

		if ($user_lv >= 28){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv28']);
		}

		if ($user_lv >= 29){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv29']);
		}

		if ($user_lv >= 30){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv30']);
		}

		if ($user_lv >= 31){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv31']);
		}

		if ($user_lv >= 32){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv32']);
		}

		if ($user_lv >= 33){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv33']);
		}

		if ($user_lv >= 34){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv34']);
		}

		if ($user_lv >= 35){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv35']);
		}

		if ($user_lv >= 36){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv36']);
		}

		if ($user_lv >= 37){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv37']);
		}

		if ($user_lv >= 38){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv38']);
		}

		if ($user_lv >= 39){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv39']);
		}

		if ($user_lv >= 40){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv40']);
		}

		if ($user_lv >= 41){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv41']);
		}

		if ($user_lv >= 42){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv42']);
		}

		if ($user_lv >= 43){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv43']);
		}

		if ($user_lv >= 44){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv44']);
		}

		if ($user_lv >= 45){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv45']);
		}

		if ($user_lv >= 46){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv46']);
		}

		if ($user_lv >= 47){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv47']);
		}

		if ($user_lv >= 48){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv48']);
		}

		if ($user_lv >= 49){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv49']);
		}

		if ($user_lv >= 50){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv50']);
		}

		if ($user_lv >= 51){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv51']);
		}

		if ($user_lv >= 52){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv52']);
		}

		if ($user_lv >= 53){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv53']);
		}

		if ($user_lv >= 54){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv54']);
		}

		if ($user_lv >= 55){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv55']);
		}

		if ($user_lv >= 56){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv56']);
		}

		if ($user_lv >= 57){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv57']);
		}

		if ($user_lv >= 58){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv58']);
		}

		if ($user_lv >= 59){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv59']);
		}

		if ($user_lv >= 60){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv60']);
		}

		if ($user_lv >= 61){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv61']);
		}

		if ($user_lv >= 62){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv62']);
		}

		if ($user_lv >= 63){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv63']);
		}

		if ($user_lv >= 64){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv64']);
		}

		if ($user_lv >= 65){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv65']);
		}

		if ($user_lv >= 66){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv66']);
		}

		if ($user_lv >= 67){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv67']);
		}

		if ($user_lv >= 68){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv68']);
		}

		if ($user_lv >= 69){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv69']);
		}

		if ($user_lv >= 70){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv70']);
		}

		if ($user_lv >= 71){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv71']);
		}

		if ($user_lv >= 72){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv72']);
		}

		if ($user_lv >= 73){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv73']);
		}

		if ($user_lv >= 74){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv74']);
		}

		if ($user_lv >= 75){
			App_Overlord_Task::getGo('main' , $task_type['main']['lv75']);
		}
	}
	/**
	 * 扩充兵力任务
	 * Enter description here ...
	 * @param $data
	 */
	public static function trigger_barracks($data) {
		$task_type = App_Overlord_Task::getTaskType();
		$barracks_count = $data['count'];
		//完成兵力扩充的任务
		if ($barracks_count >= 3000){
			App_Overlord_Task::getGo('main' , $task_type['main']['troops_1']);
		}
		if ($barracks_count >= 4000){
			App_Overlord_Task::getGo('main' , $task_type['main']['troops_2']);
		}
		if ($barracks_count >= 5000){
			App_Overlord_Task::getGo('main' , $task_type['main']['troops_3']);
		}
		if ($barracks_count >= 6000){
			App_Overlord_Task::getGo('main' , $task_type['main']['troops_4']);
		}
		if ($barracks_count >= 8000){
			App_Overlord_Task::getGo('main' , $task_type['main']['troops_5']);
		}
		if ($barracks_count >= 10000){
			App_Overlord_Task::getGo('main' , $task_type['main']['troops_6']);
		}
		if ($barracks_count >= 12000){
			App_Overlord_Task::getGo('main' , $task_type['main']['troops_7']);
		}
		if ($barracks_count >= 15000){
			App_Overlord_Task::getGo('main' , $task_type['main']['troops_8']);
		}
		if ($barracks_count >= 18000){
			App_Overlord_Task::getGo('main' , $task_type['main']['troops_9']);
		}
		if ($barracks_count >= 22000){
			App_Overlord_Task::getGo('main' , $task_type['main']['troops_10']);
		}
		if ($barracks_count >= 26000){
			App_Overlord_Task::getGo('main' , $task_type['main']['troops_11']);
		}
		if ($barracks_count >= 30000){
			App_Overlord_Task::getGo('main' , $task_type['main']['troops_12']);
		}
		if ($barracks_count >= 35000){
			App_Overlord_Task::getGo('main' , $task_type['main']['troops_13']);
		}
		if ($barracks_count >= 40000){
			App_Overlord_Task::getGo('main' , $task_type['main']['troops_14']);
		}
		if ($barracks_count >= 45000){
			App_Overlord_Task::getGo('main' , $task_type['main']['troops_15']);
		}
		if ($barracks_count >= 50000){
			App_Overlord_Task::getGo('main' , $task_type['main']['troops_16']);
		}
		if ($barracks_count >= 60000){
			App_Overlord_Task::getGo('main' , $task_type['main']['troops_17']);
		}
		if ($barracks_count >= 70000){
			App_Overlord_Task::getGo('main' , $task_type['main']['troops_18']);
		}
		if ($barracks_count >= 85000){
			App_Overlord_Task::getGo('main' , $task_type['main']['troops_19']);
		}
		if ($barracks_count >= 100000){
			App_Overlord_Task::getGo('main' , $task_type['main']['troops_20']);
		}
		if ($barracks_count >= 120000){
			App_Overlord_Task::getGo('main' , $task_type['main']['troops_21']);
		}
		if ($barracks_count >= 150000){
			App_Overlord_Task::getGo('main' , $task_type['main']['troops_22']);
		}
		if ($barracks_count >= 180000){
			App_Overlord_Task::getGo('main' , $task_type['main']['troops_23']);
		}
		if ($barracks_count >= 200000){
			App_Overlord_Task::getGo('main' , $task_type['main']['troops_24']);
		}
		if ($barracks_count >= 240000){
			App_Overlord_Task::getGo('main' , $task_type['main']['troops_25']);
		}
	}
	/**
	 * 武器升级任务
	 * Enter description here ...
	 * @param $data
	 */
	public static function trigger_equip($data) {
		$task_type = App_Overlord_Task::getTaskType();
		$equip_lv = $data['lv'];
		if ($equip_lv >= 7){
			App_Overlord_Task::getGo('main' , $task_type['main']['equip_6']);
		}elseif ($equip_lv >= 6){
			App_Overlord_Task::getGo('main' , $task_type['main']['equip_5']);
		}elseif ($equip_lv >= 5){
			App_Overlord_Task::getGo('main' , $task_type['main']['equip_4']);
		}elseif ($equip_lv >= 4){
			App_Overlord_Task::getGo('main' , $task_type['main']['equip_3']);
		}elseif ($equip_lv >= 3){
			App_Overlord_Task::getGo('main' , $task_type['main']['equip_2']);	
		}elseif ($equip_lv >= 2){
			App_Overlord_Task::getGo('main' , $task_type['main']['equip_1']);		
		}
	}
	/**
	 * 武将升级任务
	 */
	public static function trigger_general($data){
		$task_type = App_Overlord_Task::getTaskType();
		$lv = $data['lv'];
		//完成武将升到2级的任务
		if ($lv >= 2){
			App_Overlord_Task::getGo('main' , $task_type['main']['general_1']);
		}
		//完成武将升到3级的任务
		if ($lv >= 3){
			App_Overlord_Task::getGo('main' , $task_type['main']['general_2']);
		}
		//完成武将升到4级的任务
		if ($lv >= 4){
			App_Overlord_Task::getGo('main' , $task_type['main']['general_3']);
		}
		//完成武将升到5级的任务
		if ($lv >= 5){
			App_Overlord_Task::getGo('main' , $task_type['main']['general_4']);
		}
		//完成武将升到6级的任务
		if ($lv >= 6){
			App_Overlord_Task::getGo('main' , $task_type['main']['general_5']);
		}
		//完成武将升到9级的任务
		if ($lv >= 9){
			App_Overlord_Task::getGo('main' , $task_type['main']['general_6']);
		}
		//完成武将升到12级的任务
		if ($lv >= 12){
			App_Overlord_Task::getGo('main' , $task_type['main']['general_7']);
		}
		//完成武将升到15级的任务
		if ($lv >= 15){
			App_Overlord_Task::getGo('main' , $task_type['main']['general_8']);
		}
		//完成武将升到18级的任务
		if ($lv >= 18){
			App_Overlord_Task::getGo('main' , $task_type['main']['general_9']);
		}
		//完成武将升到21级的任务
		if ($lv >= 21){
			App_Overlord_Task::getGo('main' , $task_type['main']['general_10']);
		}
		//完成武将升到24级的任务
		if ($lv >= 24){
			App_Overlord_Task::getGo('main' , $task_type['main']['general_11']);
		}
		//完成武将升到27级的任务
		if ($lv >= 27){
			App_Overlord_Task::getGo('main' , $task_type['main']['general_12']);
		}
		//完成武将升到30级的任务
		if ($lv >= 30){
			App_Overlord_Task::getGo('main' , $task_type['main']['general_13']);
		}
		//完成武将升到33级的任务
		if ($lv >= 33){
			App_Overlord_Task::getGo('main' , $task_type['main']['general_14']);
		}
		//完成武将升到36级的任务
		if ($lv >= 36){
			App_Overlord_Task::getGo('main' , $task_type['main']['general_15']);
		}
		//完成武将升到39级的任务
		if ($lv >= 39){
			App_Overlord_Task::getGo('main' , $task_type['main']['general_16']);
		}
		//完成武将升到42级的任务
		if ($lv >= 42){
			App_Overlord_Task::getGo('main' , $task_type['main']['general_17']);
		}
		//完成武将升到45级的任务
		if ($lv >= 45){
			App_Overlord_Task::getGo('main' , $task_type['main']['general_18']);
		}
	} 
	/**
	 * 任务列表
	 * Enter description here ...
	 */
	public static function getTaskList(){
		$data = array(
				'freshman' => array(
					0 => array(
						'name' => '收取税金',
						'describe' => ' ',
						'award' => array('gold' => 1000 , 'exp' => 20 , 'prop' => array('recruit' , 2 , 1)),
						'pre_id' => 0
					),
					1 => array(
						'name' => '招募将领',
						'describe' => '有了黄金,就可以去客栈招募个将领为您效力了,点击客栈中的招募按钮即可。',
						'award' => array('gold' => 1000 , 'exp' => 20 , 'equip' => array('weapon' , 0 , 1)),
						'pre_id' => 0
					),
					2 => array(
						'name' => '将领换装',
						'describe' => '您的将领还没穿戴装备,赶快给您的将领更换装备吧！点击武将属性中将领的装备,更换装备。',
						'award' => array('gold' => 1000 , 'exp' => 20 , 'study' => array('general_ap' , 0 , 1)),
						'pre_id' => 0
					),
					3 => array(
						'name' => '学习技能',
						'describe' => '您的将领还没有学习技能,赶快给他学习技能吧！点击武将属性中的将领的技能,学习技能。',
						'award' => array('gold' => 2000 , 'exp' => 20),
						'pre_id' => 0
					),
					4 => array(
						'name' => '招募步兵',
						'describe' => '武将没兵可不行！赶快去兵营中去招募100个步兵吧！',
						'award' => array('gold' => 2000 , 'exp' => 20),
						'pre_id' => 0
					),
					5 => array(
						'name' => '训练骑兵',
						'describe' => '骑兵对步兵有攻击加成,点击主城内的兵营去训练100个骑兵',
						'award' => array('gold' => 2000 , 'exp' => 20),
						'pre_id' => 0
					),
					6 => array(
						'name' => '收复城池',
						'describe' => '一伙山贼乘您招兵买马之时占领了您的主城,赶快派遣将领士兵收复主城。',
						'award' => array('gold' => 2000 , 'exp' => 20),
						'pre_id' => 0
					)
				),
				'main' => array(
					0 => array(
						'name' => '升至3级',
						'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至3级。',
						'award' => array('gold' => 1500 , 'exp' => 10 , 'prop' => array('recruit' , 0 , 2)),
						'pre_id' => 0
					),
					1 => array(
						'name' => '招贤纳将',
						'describe' => '若得随时运谋、整军经武之良将，可助我军兵强马壮、所向披靡！请君上速去招贤纳将',
						'award' => array('gold' => 1000 , 'exp' => 20 , 'equip' => array('armour' , 0 , 1) , 'prop' => array('training' , 0 , 2) , 'material' => array('material' , 2 , 4)),
						'process' => '<br />1.点击导航中',
						'process_1' => '<br />2.进入点将台界面点击招募按钮即可',
						'type' => 'overlordlnn&amp;a=lnn',
						'type_name' => '【点将台】',
						'pre_id' => 0
					),
					2 => array(
						'name' => '十万火急',
						'describe' => '前线告急，需火速集结兵马，据说加速道具可缩短兵马集结时间。请君上一试。',
						'award' => array('gold' => 2000 , 'exp' => 20 , 'equip' => array('helm' , 0 , 1) , 'material' => array('material' , 4 , 4)),
						'process' => '<br />1.点击',
						'process_1' => '中的招募按钮<br />2.点击加速按钮<br />3.使用兵法残页',
						'type' => 'overlordbarracks&amp;a=barracks',
						'type_name' => '【兵营】',
						'pre_id' => 0
					),
					3 => array(
						'name' => '更改战术',
						'describe' => '知己知彼，方能百战不殆！调整战术决定我三军将领攻战胜负。请君上调整战略战术。',
						'award' => array('gold' => 6000 , 'exp' => 20 , 'equip' => array('horse' , 0 , 1) , 'material' => array('material' , 0 , 2)),
						'process' => '<br />1.点击导航中的',
						'process_1' => '按钮<br />2.进入将领界面点击将领名字<br />3.进入将领属性界面点击更改战术',
						'type' => 'overlordgenerals&amp;a=generals',
						'type_name' => '【将领】',
						'pre_id' => 0
					),
					4 => array(
						'name' => '攻城掠地',
						'describe' => '养兵千日，用于一朝！攻获和驻防城池可充盈国库军资。请君上下令攻城。',
						'award' => array('gold' => 2500 , 'exp' => 20 ,	'equip' => array('weapon' , 0 , 1) , 'material' => array('material' , 1 , 4)),
						'process' => '<br />1.点击',
						'process_1' => '中的刷新按钮<br />2.进入攻占对手界面点击占领按钮<br />3.进入派遣将领界面点击派遣<br />4.进入调兵界面点击确认按钮',
						'type' => 'overlorduser',
						'type_name' => '游戏主页',
						'pre_id' => 0
					),
					5 => array(
						'name' => '扩充地盘-1',
						'describe' => '攻获和驻防城池可充盈国库军资，请君上传令攻占2座新城',
						'award' => array('gold' => 2000 , 'exp' => 20 , 'material' => array('check' , 0 , 1) , 'material' => array('material' , 3 , 4)),
						'pre_id' => 0
					),
					6 => array(
						'name' => '收取材料',
						'describe' => '好马配好鞍，宝刀配良将！众将领装备需精良强化，现城内资源颇丰，请君上收集利器资源！',
						'award' => array('gold' => 2000 , 'exp' => 20 , 'prop' => array('check' , 0 , 2) , 'material' => array('material' , 1 , 2)),
						'process' => '<br />1.点击导航中的',
						'process_1' => '按钮<br />2.进入主城界面点击收取材料<br />3.进入材料搜索界面点击一键收取按钮',
						'type' => 'overlordcity&amp;a=citygold',
						'type_name' => '【主城】',
						'pre_id' => 0
					),
					7 => array(
						'name' => '开启宝箱',
						'describe' => '宝箱珍藏着宝物，使用铁钥匙能打开铁宝箱，请君上一试！',
						'award' => array('gold' => 5000  , 'exp' => 20 , 'prop' => array('key' , 0 , 2)),
						'process' => '<br />1.点击导航中的',
						'process_1' => '按钮<br />2.进入背包界面点击宝箱<br />3.点击使用',
						'type' => 'overlordcommodity&amp;a=knapsack',
						'type_name' => '【背包】',
						'pre_id' => 0
					),
					8 => array(
						'name' => '战绩功勋',
						'describe' => '通过攻城战斗可获得功勋战绩，就可在商城购买宝物与战利品。请君上速传令众将备战攻城！',
						'award' => array('gold' => 2000 , 'prop' => array('expedition' , 1 , 1)),
						'process' => '<br />1.点击',
						'process_1' => '中的刷新按钮<br />2.进入攻占对手界面点击占领按钮<br />3.进入派遣将领界面点击派遣<br />4.进入调兵界面点击确认按钮',
						'type' => 'overlorduser',
						'type_name' => '游戏主页',
						'pre_id' => 0
					),
					9 => array(
						'name' => '日常训练',
						'describe' => '训练将领行军守令，统兵众志成城！冲锋陷阵方可出奇制胜，扬我君威！将领也可获得丰富经验奖励，请君上传令将领训练。',
						'award' => array('gold' => 2500 , 'exp' => 30 , 'prop' => array('recruit' , 0 , 2)),
						'process' => '<br />1.点击导航中',
						'process_1' => '按钮<br />2.进入训练场界面点击日常训练<br />3.点击开始训练按钮',
						'type' => 'overlordskills&amp;a=clickgeneral',
						'type_name' => '【训练场】',
						'pre_id' => 0
					),
					10 => array(
						'name' => '钻研武技',
						'describe' => '统兵将领需精通文韬武略，其技能战术仍需日益精进，请君上修练将领。',
						'award' => array('gold' => 2500 , 'exp' => 20),
						'process' => '<br />1.点击导航中',
						'process_1' => '按钮<br />2.进入训练场界面点击钻研武技<br />3.点击开始训练按钮',
						'type' => 'overlordskills&amp;a=clickgeneral',
						'type_name' => '【训练场】',
						'pre_id' => 9
					),
					11 => array(
						'name' => '强化统御',
						'describe' => '军务不可荒废，提升将领统兵能力，亦可获得新技能！请君上进行统御训练！',
						'award' => array('gold' => 2500 , 'exp' => 10),
						'process' => '<br />1.点击导航中',
						'process_1' => '按钮<br />2.进入训练场界面点击强化统御<br />3.点击开始训练按钮',
						'type' => 'overlordskills&amp;a=clickgeneral',
						'type_name' => '【训练场】',
						'pre_id' => 10
					),
					12 => array(
						'name' => '功勋建筑',
						'describe' => '修建功勋建筑会消耗功勋，但可提高税金收入！请君上修建功勋建筑。',
						'award' => array('gold' => 2000 , 'prop' => array('expedition' , 0 , 2)),
						'process' => '<br />1.点击导航中的',
						'process_1' => '按钮<br />2.进入建设界面点击去建设<br />3.选择建建筑点击建设',
						'type' => 'overlorduser&amp;a=exploit_build',
						'type_name' => '【建筑】',
						'pre_id' => 0
					),
					13 => array(
						'name' => '知己知彼',
						'describe' => '知己知彼，百战不殆！请君上利用侦察术前去敌营一探虚实！',
						'award' => array('gold' => 2500 , 'exp' => 20 , 'prop' => array('check' , 0 , 2)),
						'process' => '<br />1.点击玩家的昵称<br />2.进入玩家信息界面点击侦查<br />3.使用侦查术点击使用按钮',
						'pre_id' => 0
					),
					14 => array(
						'name' => '强化武器',
						'describe' => '欲善其事，先利其器！请君上在兵器司成功强化武器一次！',
						'award' => array('gold' => 2000  , 'exp' => 10 , 'equip' => array('armour' , 0 , 1)),
						'process' => '<br />1.点击导航中的',
						'process_1' => '购买任意一把武器<br />2.点击导航中的兵器司按钮<br />3.进入兵器司界面点击强化按钮',
						'type' => 'overlordcommodity&amp;a=mall',
						'type_name' => '【商城】',
						'pre_id' => 0
					),
					15 => array(
						'name' => '强化铠甲',
						'describe' => '欲善其事，先利其器！请君上在兵器司成功强化铠甲一次！',
						'award' => array('gold' => 2000  , 'exp' => 10 , 'equip' => array('helm' , 1 , 1)),
						'process' => '<br />1.点击导航中的',
						'process_1' => '购买任意一件铠甲<br />2.点击导航中的兵器司按钮<br />3.进入兵器司界面点击强化按钮',
						'type' => 'overlordcommodity&amp;a=mall',
						'type_name' => '【商城】',
						'pre_id' => 14
					),
					16 => array(
						'name' => '强化头盔',
						'describe' => '欲善其事，先利其器！请君上在兵器司成功强化头盔一次！',
						'award' => array('gold' => 2000 , 'exp' => 10 , 'equip' => array('horse' , 1 , 1)),
						'process' => '<br />1.点击导航中的',
						'process_1' => '购买任意一件头盔<br />2.点击导航中的兵器司按钮<br />3.进入兵器司界面点击强化按钮',
						'type' => 'overlordcommodity&amp;a=mall',
						'type_name' => '【商城】',
						'pre_id' => 15
					),
					17 => array(
						'name' => '强化战马',
						'describe' => '欲善其事，先利其器！请君上在兵器司成功强化战马一次！',
						'award' => array('gold' => 2000 , 'exp' => 10 , 'material' => array('material' , 0 , 1)),
						'process' => '<br />1.点击导航中的',
						'process_1' => '购买任意一匹战马<br />2.点击导航中的兵器司按钮<br />3.进入兵器司界面点击强化按钮',
						'type' => 'overlordcommodity&amp;a=mall',
						'type_name' => '【商城】',
						'pre_id' => 16
					),
					18 => array(
						'name' => '扩充地盘-2',
						'describe' => '攻获和驻防城池可充盈国库军资，请君上传令攻占3座新城',
						'award' => array('gold' => 3000 , 'exp' => 30 , 'material' => array('check' , 0 , 1)),
						'pre_id' => 5
					),
					19 => array(
						'name' => '扩充地盘-3',
						'describe' => '攻获和驻防城池可充盈国库军资，请君上传令攻占4座新城',
						'award' => array('gold' => 4000 , 'exp' => 40 , 'material' => array('check' , 0 , 1)),
						'pre_id' => 18
					),
					20 => array(
						'name' => '升至4级',
						'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至4级。',
						'award' => array('gold' => 1800 , 'exp' => 10 , 'prop' => array('recruit' , 0 , 2)),
						'pre_id' => 0
					),
					21 => array(
						'name' => '扩充地盘-4',
						'describe' => '攻获和驻防城池可充盈国库军资，请君上传令攻占6座新城',
						'award' => array('gold' => 6000 , 'exp' => 50 , 'material' => array('check' , 0 , 1)),
						'pre_id' => 19
					),
					22 => array(
						'name' => '升至5级',
						'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至5级。',
						'award' => array('gold' => 1800 , 'exp' => 10 , 'prop' => array('recruit' , 0 , 2)),
						'pre_id' => 20
					),
					23 => array(
						'name' => '扩充地盘-5',
						'describe' => '攻获和驻防城池可充盈国库军资，请君上传令攻占8座新城',
						'award' => array('gold' => 6000 , 'exp' => 50 , 'material' => array('check' , 0 , 2)),
						'pre_id' => 21
					),
					24 => array(
						'name' => '升至6级',
						'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至6级。',
						'award' => array('gold' => 1800 , 'exp' => 10 , 'prop' => array('recruit' , 0 , 2)),
						'pre_id' => 22
					),
					25 => array(
						'name' => '扩充地盘-6',
						'describe' => '攻获和驻防城池可充盈国库军资，请君上传令攻占10座新城',
						'award' => array('gold' => 6000 , 'exp' => 60 , 'material' => array('check' , 0 , 2)),
						'pre_id' => 23
					),
					26 => array(
						'name' => '升至7级',
						'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至7级。',
						'award' => array('gold' => 1800 , 'exp' => 10 , 'prop' => array('recruit' , 0 , 2)),
						'pre_id' => 24
					),
					27 => array(
						'name' => '扩充地盘-7',
						'describe' => '攻获和驻防城池可充盈国库军资，请君上传令攻占12座新城',
						'award' => array('gold' => 12000 , 'exp' => 70 , 'material' => array('check' , 0 , 2)),
						'pre_id' => 25
					),
					28 => array(
						'name' => '强化装备-1',
						'describe' => '欲善其事，先利其器！请君上在兵器司将任意一件装备强化到2级',
						'award' => array('gold' => 2000 , 'material' => array('material' , 0 , 1)),
						'pre_id' => 17
					),
					29 => array(
						'name' => '强化装备-2',
						'describe' => '欲善其事，先利其器！请君上在兵器司将任意一件装备强化到3级',
						'award' => array('gold' => 3000 , 'material' => array('material' , 0 , 1)),
						'pre_id' => 154
					),
					30 => array(
						'name' => '升至8级',
						'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至8级。',
						'award' => array('gold' => 2000 , 'exp' => 15 , 'prop' => array('recruit' , 0 , 2)),
						'pre_id' => 26
					),
					31 => array(
						'name' => '扩充地盘-8',
						'describe' => '攻获和驻防城池可充盈国库军资，请君上传令攻占14座新城',
						'award' => array('gold' => 14000 , 'exp' => 80 , 'material' => array('check' , 0 , 2)),
						'pre_id' => 27
					),
					32 => array(
						'name' => '强化装备-3',
						'describe' => '欲善其事，先利其器！请君上在兵器司将任意一件装备强化到4级',
						'award' => array('gold' => 4000 , 'material' => array('material' , 0 , 2)),
						'pre_id' => 29
					),
					33 => array(
						'name' => '强化装备-4',
						'describe' => '欲善其事，先利其器！请君上在兵器司将任意一件装备强化到5级',
						'award' => array('gold' => 5000 , 'material' => array('material' , 0 , 2)),
						'pre_id' => 32
					),
					34 => array(
						'name' => '升至9级',
						'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至9级。',
						'award' => array('gold' => 2000 , 'exp' => 15 , 'prop' => array('recruit' , 0 , 2)),
						'pre_id' => 30
					),
					35 => array(
						'name' => '扩充地盘-9',
						'describe' => '攻获和驻防城池可充盈国库军资，请君上传令攻占16座新城',
						'award' => array('gold' => 16000 , 'exp' => 90 , 'material' => array('check' , 0 , 2)),
						'pre_id' => 31
					),
					36 => array(
						'name' => '强化装备-5',
						'describe' => '欲善其事，先利其器！请君上在兵器司将任意一件装备强化到6级',
						'award' => array('gold' => 6000 , 'material' => array('material' , 0 , 3)),
						'pre_id' => 33
					),
					37 => array(
						'name' => '升至10级',
						'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至10级。',
						'award' => array('gold' => 2000 , 'exp' => 15 , 'prop' => array('recruit' , 0 , 2)),
						'pre_id' => 34
					),
					38 => array(
						'name' => '扩充地盘-10',
						'describe' => '攻获和驻防城池可充盈国库军资，请君上传令攻占18座新城',
						'award' => array('gold' => 18000 , 'exp' => 100 , 'material' => array('check' , 0 , 3)),
						'pre_id' => 35
					),
					39 => array(
						'name' => '强化装备-6',
						'describe' => '欲善其事，先利其器！请君上在兵器司将任意一件装备强化到7级',
						'award' => array('gold' => 7000 , 'material' => array('material' , 0 , 3)),
						'pre_id' => 36
					),
					40 => array(
						'name' => '升至11级',
						'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至11级。',
						'award' => array('gold' => 2000 , 'exp' => 15 , 'prop' => array('recruit' , 0 , 2)),
						'pre_id' => 37
					),
					41 => array(
						'name' => '扩充地盘-11',
						'describe' => '攻获和驻防城池可充盈国库军资，请君上传令攻占20座新城',
						'award' => array('gold' => 20000 , 'exp' => 120 , 'material' => array('check' , 0 , 3)),
						'pre_id' => 39
					),
					42 => array(
						'name' => '升至12级',
						'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至12级。',
						'award' => array('gold' => 2000 , 'exp' => 15 , 'prop' => array('recruit' , 0 , 2)),
						'pre_id' => 40
					),
					43 => array(
						'name' => '扩充地盘-12',
						'describe' => '攻获和驻防城池可充盈国库军资，请君上传令攻占22座新城',
						'award' => array('gold' => 22000 , 'exp' => 140 , 'material' => array('check' , 0 , 3)),
						'pre_id' => 41
					),
					44 => array(
						'name' => '升至13级',
						'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至13级。',
						'award' => array('gold' => 2000 , 'exp' => 15 , 'prop' => array('recruit' , 0 , 2)),
						'pre_id' => 42
					),
					45 => array(
						'name' => '扩充地盘-13',
						'describe' => '攻获和驻防城池可充盈国库军资，请君上传令攻占24座新城',
						'award' => array('gold' => 24000 , 'exp' => 160 , 'material' => array('check' , 0 , 3)),
						'pre_id' => 43
					),
					46 => array(
						'name' => '升至14级',
						'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至14级。',
						'award' => array('gold' => 2000 , 'exp' => 15 , 'prop' => array('recruit' , 0 , 2)),
						'pre_id' => 44
					),
					47 => array(
						'name' => '扩充地盘-14',
						'describe' => '攻获和驻防城池可充盈国库军资，请君上传令攻占26座新城',
						'award' => array('gold' => 24000 , 'exp' => 180 , 'material' => array('check' , 0 , 3)),
						'pre_id' => 45
					),
					48 => array(
						'name' => '升至15级',
						'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至15级。',
						'award' => array('gold' => 2500 , 'exp' => 20 , 'prop' => array('recruit' , 0 , 2)),
						'pre_id' => 46
					),
					49 => array(
						'name' => '扩充地盘-15',
						'describe' => '攻获和驻防城池可充盈国库军资，请君上传令攻占28座新城',
						'award' => array('gold' => 26000 , 'exp' => 200 , 'material' => array('check' , 0 , 3)),
						'pre_id' => 47
					),
					50 => array(
						'name' => '升至16级',
						'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至16级。',
						'award' => array('gold' => 2500 , 'exp' => 20 , 'prop' => array('recruit' , 0 , 2)),
						'pre_id' => 48
					),
					51 => array(
						'name' => '扩充地盘-16',
						'describe' => '攻获和驻防城池可充盈国库军资，请君上传令攻占30座新城',
						'award' => array('gold' => 30000 , 'exp' => 240 , 'material' => array('check' , 0 , 3)),
						'pre_id' => 49
					),
					52 => array(
						'name' => '将领升级-1',
						'describe' => '将领级别越高，攻城掠池胜算越大，请君上速提升2级将领。',
						'award' => array('gold' => 2000 , 'prop' => array('recover' , 0 , 1)),
						'pre_id' => 20
					),
					53 => array(
						'name' => '将领升级-2',
						'describe' => '将领级别越高，攻城掠池胜算越大，请君上速提升3级级将领。',
						'award' => array('gold' => 3000 , 'prop' => array('recover' , 0 , 1)),
						'pre_id' => 52
					),
					54 => array(
						'name' => '将领升级-3',
						'describe' => '将领级别越高，攻城掠池胜算越大，请君上速提升4级将领。',
						'award' => array('gold' => 4000 , 'prop' => array('recover' , 0 , 1)),
						'pre_id' => 53
					),
					55 => array(
						'name' => '将领升级-4',
						'describe' => '将领级别越高，攻城掠池胜算越大，请君上速提升5级将领。',
						'award' => array('gold' => 5000 , 'prop' => array('recover' , 0 , 1)),
						'pre_id' => 54
					),
					56 => array(
						'name' => '将领升级-5',
						'describe' => '将领级别越高，攻城掠池胜算越大，请君上速提升6级将领。',
						'award' => array('gold' => 6000 , 'prop' => array('recover' , 0 , 1)),
						'pre_id' => 55
					),
					57 => array(
						'name' => '将领升级-6',
						'describe' => '将领级别越高，攻城掠池胜算越大，请君上速提升9级将领。',
						'award' => array('gold' => 9000 , 'prop' => array('recover' , 0 , 1)),
						'pre_id' => 56
					),
					58 => array(
						'name' => '将领升级-7',
						'describe' => '将领级别越高，攻城掠池胜算越大，请君上速提升12级将领。',
						'award' => array('gold' => 12000 , 'prop' => array('recover' , 0 , 1)),
						'pre_id' => 57
					),
					59 => array(
						'name' => '将领升级-8',
						'describe' => '将领级别越高，攻城掠池胜算越大，请君上速提升15级将领。',
						'award' => array('gold' => 15000 , 'prop' => array('recover' , 0 , 1)),
						'pre_id' => 58
					),
					60 => array(
						'name' => '将领升级-9',
						'describe' => '将领级别越高，攻城掠池胜算越大，请君上速提升18级将领。',
						'award' => array('gold' => 18000 , 'prop' => array('recover' , 0 , 1)),
						'pre_id' => 59
					),
					61 => array(
						'name' => '将领升级-10',
						'describe' => '将领级别越高，攻城掠池胜算越大，请君上速提升21级将领。',
						'award' => array('gold' => 21000 , 'prop' => array('recover' , 0 , 1)),
						'pre_id' => 60
					),
					62 => array(
						'name' => '将领升级-11',
						'describe' => '将领级别越高，攻城掠池胜算越大，请君上速提升24级将领。',
						'award' => array('gold' => 24000 , 'prop' => array('recover' , 0 , 1)),
						'pre_id' => 61
					),
					63 => array(
						'name' => '将领升级-12',
						'describe' => '将领级别越高，攻城掠池胜算越大，请君上速提升27级将领。',
						'award' => array('gold' => 27000 , 'prop' => array('recover' , 0 , 1)),
						'pre_id' => 62
					),
					64 => array(
						'name' => '将领升级-13',
						'describe' => '将领级别越高，攻城掠池胜算越大，请君上速提升30级将领。',
						'award' => array('gold' => 30000 , 'prop' => array('recover' , 0 , 1)),
						'pre_id' => 63
					),
					65 => array(
						'name' => '将领升级-14',
						'describe' => '将领级别越高，攻城掠池胜算越大，请君上速提升33级将领。',
						'award' => array('gold' => 33000 , 'prop' => array('recover' , 0 , 1)),
						'pre_id' => 64
					),
					66 => array(
						'name' => '将领升级-15',
						'describe' => '将领级别越高，攻城掠池胜算越大，请君上速提升36级将领。',
						'award' => array('gold' => 36000 , 'prop' => array('recover' , 0 , 1)),
						'pre_id' => 65
					),
					67 => array(
						'name' => '将领升级-16',
						'describe' => '将领级别越高，攻城掠池胜算越大，请君上速提升39级将领。',
						'award' => array('gold' => 39000 , 'prop' => array('recover' , 0 , 1)),
						'pre_id' => 66
					),
					68 => array(
						'name' => '将领升级-17',
						'describe' => '将领级别越高，攻城掠池胜算越大，请君上速提升42级将领。',
						'award' => array('gold' => 42000 , 'prop' => array('recover' , 0 , 1)),
						'pre_id' => 67
					),
					69 => array(
						'name' => '将领升级-18',
						'describe' => '将领级别越高，攻城掠池胜算越大，请君上速提升45级将领。',
						'award' => array('gold' => 45000 , 'prop' => array('recover' , 0 , 1)),
						'pre_id' => 68
					),
					70 => array(
						'name' => '扩充兵力-1',
						'describe' => '欲驰骋天下、伏虎降龙，还需扩充兵力，请君上传令兵营征兵，将兵力扩充至3000人',
						'award' => array('gold' => 3000 , 'prop' => array('training' , 0 , 1)),
						'pre_id' => 0
					),
					71 => array(
						'name' => '扩充兵力-2',
						'describe' => '欲驰骋天下、伏虎降龙，还需扩充兵力，请君上传令兵营征兵，将兵力扩充至4000人',
						'award' => array('gold' => 3000 , 'prop' => array('training' , 0 , 1)),
						'pre_id' => 70
					),
					72 => array(
						'name' => '扩充兵力-3',
						'describe' => '欲驰骋天下、伏虎降龙，还需扩充兵力，请君上传令兵营征兵，将兵力扩充至5000人',
						'award' => array('gold' => 3000 , 'prop' => array('training' , 0 , 1)),
						'pre_id' => 71
					),
					73 => array(
						'name' => '扩充兵力-4',
						'describe' => '欲驰骋天下、伏虎降龙，还需扩充兵力，请君上传令兵营征兵，将兵力扩充至6000人',
						'award' => array('gold' => 3000 , 'prop' => array('training' , 0 , 2)),
						'pre_id' => 72
					),
					74 => array(
						'name' => '扩充兵力-5',
						'describe' => '欲驰骋天下、伏虎降龙，还需扩充兵力，请君上传令兵营征兵，将兵力扩充至8000人',
						'award' => array('gold' => 6000 , 'prop' => array('training' , 0 , 2)),
						'pre_id' => 73
					),
					75 => array(
						'name' => '扩充兵力-6',
						'describe' => '欲驰骋天下、伏虎降龙，还需扩充兵力，请君上传令兵营征兵，将兵力扩充至10000人',
						'award' => array('gold' => 6000 , 'prop' => array('training' , 0 , 2)),
						'pre_id' => 74
					),
					76 => array(
						'name' => '扩充兵力-7',
						'describe' => '欲驰骋天下、伏虎降龙，还需扩充兵力，请君上传令兵营征兵，将兵力扩充至12000人',
						'award' => array('gold' => 6000 , 'prop' => array('training' , 0 , 2)),
						'pre_id' => 75
					),
					77 => array(
						'name' => '扩充兵力-8',
						'describe' => '欲驰骋天下、伏虎降龙，还需扩充兵力，请君上传令兵营征兵，将兵力扩充至15000人',
						'award' => array('gold' => 6000 , 'prop' => array('training' , 0 , 2)),
						'pre_id' => 76
					),
					78 => array(
						'name' => '扩充兵力-9',
						'describe' => '欲驰骋天下、伏虎降龙，还需扩充兵力，请君上传令兵营征兵，将兵力扩充至18000人',
						'award' => array('gold' => 6000 , 'prop' => array('training' , 1 , 1)),
						'pre_id' => 77
					),
					79 => array(
						'name' => '扩充兵力-10',
						'describe' => '欲驰骋天下、伏虎降龙，还需扩充兵力，请君上传令兵营征兵，将兵力扩充至22000人',
						'award' => array('gold' => 6000 , 'prop' => array('training' , 1 , 1)),
						'pre_id' => 78
					),
					80 => array(
						'name' => '扩充兵力-11',
						'describe' => '欲驰骋天下、伏虎降龙，还需扩充兵力，请君上传令兵营征兵，将兵力扩充至26000人',
						'award' => array('gold' => 8000 , 'prop' => array('training' , 1 , 1)),
						'pre_id' => 79
					),
					81 => array(
						'name' => '扩充兵力-12',
						'describe' => '欲驰骋天下、伏虎降龙，还需扩充兵力，请君上传令兵营征兵，将兵力扩充至30000人',
						'award' => array('gold' => 8000 , 'prop' => array('training' , 1 , 1)),
						'pre_id' => 80
					),
					82 => array(
						'name' => '扩充兵力-13',
						'describe' => '欲驰骋天下、伏虎降龙，还需扩充兵力，请君上传令兵营征兵，将兵力扩充至35000人',
						'award' => array('gold' => 8000 , 'prop' => array('training' , 1 , 1)),
						'pre_id' => 81
					),
					83 => array(
						'name' => '扩充兵力-14',
						'describe' => '欲驰骋天下、伏虎降龙，还需扩充兵力，请君上传令兵营征兵，将兵力扩充至40000人',
						'award' => array('gold' => 8000 , 'prop' => array('training' , 1 , 1)),
						'pre_id' => 82
					),
					84 => array(
						'name' => '扩充兵力-15',
						'describe' => '欲驰骋天下、伏虎降龙，还需扩充兵力，请君上传令兵营征兵，将兵力扩充至45000人',
						'award' => array('gold' => 8000 , 'prop' => array('training' , 1 , 1)),
						'pre_id' => 83
					),
					85 => array(
						'name' => '扩充兵力-16',
						'describe' => '欲驰骋天下、伏虎降龙，还需扩充兵力，请君上传令兵营征兵，将兵力扩充至50000人',
						'award' => array('gold' => 11000 , 'prop' => array('training' , 2 , 1)),
						'pre_id' => 84
					),
					86 => array(
						'name' => '扩充兵力-17',
						'describe' => '欲驰骋天下、伏虎降龙，还需扩充兵力，请君上传令兵营征兵，将兵力扩充至60000人',
						'award' => array('gold' => 11000 , 'prop' => array('training' , 2 , 1)),
						'pre_id' => 85
					),
					87 => array(
						'name' => '扩充兵力-18',
						'describe' => '欲驰骋天下、伏虎降龙，还需扩充兵力，请君上传令兵营征兵，将兵力扩充至70000人',
						'award' => array('gold' => 11000 , 'prop' => array('training' , 2 , 1)),
						'pre_id' => 86
					),
					88 => array(
						'name' => '扩充兵力-19',
						'describe' => '欲驰骋天下、伏虎降龙，还需扩充兵力，请君上传令兵营征兵，将兵力扩充至85000人',
						'award' => array('gold' => 11000 , 'prop' => array('training' , 2 , 1)),
						'pre_id' => 87
					),
					89 => array(
						'name' => '扩充兵力-20',
						'describe' => '欲驰骋天下、伏虎降龙，还需扩充兵力，请君上传令兵营征兵，将兵力扩充至100000人',
						'award' => array('gold' => 11000 , 'prop' => array('training' , 2 , 1)),
						'pre_id' => 88
					),
					90 => array(
						'name' => '扩充兵力-21',
						'describe' => '欲驰骋天下、伏虎降龙，还需扩充兵力，请君上传令兵营征兵，将兵力扩充至120000人',
						'award' => array('gold' => 15000 , 'prop' => array('training' , 2 , 2)),
						'pre_id' => 89
					),
					91 => array(
						'name' => '扩充兵力-22',
						'describe' => '欲驰骋天下、伏虎降龙，还需扩充兵力，请君上传令兵营征兵，将兵力扩充至150000人',
						'award' => array('gold' => 15000 , 'prop' => array('training' , 2 , 2)),
						'pre_id' => 90
					),
					92 => array(
						'name' => '扩充兵力-23',
						'describe' => '欲驰骋天下、伏虎降龙，还需扩充兵力，请君上传令兵营征兵，将兵力扩充至180000人',
						'award' => array('gold' => 15000 , 'prop' => array('training' , 2 , 2)),
						'pre_id' => 91
					),
					93 => array(
						'name' => '扩充兵力-24',
						'describe' => '欲驰骋天下、伏虎降龙，还需扩充兵力，请君上传令兵营征兵，将兵力扩充至200000人',
						'award' => array('gold' => 15000 , 'prop' => array('training' , 2 , 2)),
						'pre_id' => 92
					),
					94 => array(
						'name' => '扩充兵力-25',
						'describe' => '欲驰骋天下、伏虎降龙，还需扩充兵力，请君上传令兵营征兵，将兵力扩充至240000人',
						'award' => array('gold' => 20000 , 'prop' => array('training' , 2 , 2)),
						'pre_id' => 93
					),
					95 => array(
						'name' => '升至17级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至17级。' , 'award' => array( 'gold'=> 2500 , 'exp' => 20 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 50
						),
					96 => array(
						'name' => '升至18级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至18级。' , 'award' => array( 'gold'=> 2500 , 'exp' => 20 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 95
						),
					97 => array(
						'name' => '升至19级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至19级。' , 'award' => array( 'gold'=> 2500 , 'exp' => 20 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 96
						),
					98 => array(
						'name' => '升至20级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至20级。' , 'award' => array( 'gold'=> 2500 , 'exp' => 20 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 97
						),
					99 => array(
						'name' => '升至21级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至21级。' , 'award' => array( 'gold'=> 2500 , 'exp' => 20 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 98
						),
					100 => array(
						'name' => '升至22级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至22级。' , 'award' => array( 'gold'=> 2500 , 'exp' => 20 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 99
						),
					101 => array(
						'name' => '升至23级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至23级。' , 'award' => array( 'gold'=> 3000 , 'exp' => 30 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 100
						),
					102 => array(
						'name' => '升至24级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至24级。' , 'award' => array( 'gold'=> 3000 , 'exp' => 30 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 101
						),
					103 => array(
						'name' => '升至25级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至25级。' , 'award' => array( 'gold'=> 3000 , 'exp' => 30 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 102
						),
					104 => array(
						'name' => '升至26级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至26级。' , 'award' => array( 'gold'=> 3000 , 'exp' => 30 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 103
						),
					105 => array(
						'name' => '升至27级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至27级。' , 'award' => array( 'gold'=> 3000 , 'exp' => 30 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 104
						),
					106 => array(
						'name' => '升至28级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至28级。' , 'award' => array( 'gold'=> 3000 , 'exp' => 30 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 105
						),
					107 => array(
						'name' => '升至29级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至29级。' , 'award' => array( 'gold'=> 3000 , 'exp' => 30 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 106
						),
					108 => array(
						'name' => '升至30级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至30级。' , 'award' => array( 'gold'=> 3600 , 'exp' => 70 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 107
						),
					109 => array(
						'name' => '升至31级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至31级。' , 'award' => array( 'gold'=> 3600 , 'exp' => 70 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 108
						),
					110 => array(
						'name' => '升至32级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至32级。' , 'award' => array( 'gold'=> 3600 , 'exp' => 70 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 109
						),
					111 => array(
						'name' => '升至33级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至33级。' , 'award' => array( 'gold'=> 3600 , 'exp' => 70 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 110
						),
					112 => array(
						'name' => '升至34级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至34级。' , 'award' => array( 'gold'=> 3600 , 'exp' => 70 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 111
						),
					113 => array(
						'name' => '升至35级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至35级。' , 'award' => array( 'gold'=> 3600 , 'exp' => 70 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 112
						),
					114 => array(
						'name' => '升至36级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至36级。' , 'award' => array( 'gold'=> 5000 , 'exp' => 80 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 113
						),
					115 => array(
						'name' => '升至37级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至37级。' , 'award' => array( 'gold'=> 5000 , 'exp' => 80 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 114
						),
					116 => array(
						'name' => '升至38级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至38级。' , 'award' => array( 'gold'=> 5000 , 'exp' => 80 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 115
						),
					117 => array(
						'name' => '升至39级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至39级。' , 'award' => array( 'gold'=> 5000 , 'exp' => 80 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 116
						),
					118 => array(
						'name' => '升至40级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至40级。' , 'award' => array( 'gold'=> 5000 , 'exp' => 80 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 117
						),
					119 => array(
						'name' => '升至41级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至41级。' , 'award' => array( 'gold'=> 6000 , 'exp' => 90 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 118
						),
					120 => array(
						'name' => '升至42级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至42级。' , 'award' => array( 'gold'=> 6000 , 'exp' => 90 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 119
						),
					121 => array(
						'name' => '升至43级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至43级。' , 'award' => array( 'gold'=> 6000 , 'exp' => 90 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 120
						),
					122 => array(
						'name' => '升至44级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至44级。' , 'award' => array( 'gold'=> 6000 , 'exp' => 90 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 121
						),
					123 => array(
						'name' => '升至45级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至45级。' , 'award' => array( 'gold'=> 6000 , 'exp' => 90 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 122
						),
					124 => array(
						'name' => '升至46级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至46级。' , 'award' => array( 'gold'=> 6500 , 'exp' => 100 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 123
						),
					125 => array(
						'name' => '升至47级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至47级。' , 'award' => array( 'gold'=> 6500 , 'exp' => 100 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 124
						),
					126 => array(
						'name' => '升至48级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至48级。' , 'award' => array( 'gold'=> 6500 , 'exp' => 100 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 125
						),
					127 => array(
						'name' => '升至49级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至49级。' , 'award' => array( 'gold'=> 6500 , 'exp' => 100 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 126
						),
					128 => array(
						'name' => '升至50级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至50级。' , 'award' => array( 'gold'=> 6500 , 'exp' => 100 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 127
						),
					129 => array(
						'name' => '升至51级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至51级。' , 'award' => array( 'gold'=> 7000 , 'exp' => 110 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 128
						),
					130 => array(
						'name' => '升至52级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至52级。' , 'award' => array( 'gold'=> 7000 , 'exp' => 110 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 129
						),
					131 => array(
						'name' => '升至53级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至53级。' , 'award' => array( 'gold'=> 7000 , 'exp' => 110 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 130
						),
					132 => array(
						'name' => '升至54级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至54级。' , 'award' => array( 'gold'=> 7000 , 'exp' => 110 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 131
						),
					133 => array(
						'name' => '升至55级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至55级。' , 'award' => array( 'gold'=> 7000 , 'exp' => 110 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 132
						),
					134 => array(
						'name' => '升至56级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至56级。' , 'award' => array( 'gold'=> 7500 , 'exp' => 120 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 133
						),
					135 => array(
						'name' => '升至57级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至57级。' , 'award' => array( 'gold'=> 7500 , 'exp' => 120 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 134
						),
					136 => array(
						'name' => '升至58级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至58级。' , 'award' => array( 'gold'=> 7500 , 'exp' => 120 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 135
						),
					137 => array(
						'name' => '升至59级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至59级。' , 'award' => array( 'gold'=> 7500 , 'exp' => 120 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 136
						),
					138 => array(
						'name' => '升至60级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至60级。' , 'award' => array( 'gold'=> 7500 , 'exp' => 120 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 137
						),
					139 => array(
						'name' => '升至61级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至61级。' , 'award' => array( 'gold'=> 8500 , 'exp' => 130 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 138
						),
					140 => array(
						'name' => '升至62级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至62级。' , 'award' => array( 'gold'=> 8500 , 'exp' => 130 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 139
						),
					141 => array(
						'name' => '升至63级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至63级。' , 'award' => array( 'gold'=> 8500 , 'exp' => 130 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 140
						),
					142 => array(
						'name' => '升至64级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至64级。' , 'award' => array( 'gold'=> 8500 , 'exp' => 130 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 141
						),
					143 => array(
						'name' => '升至65级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至65级。' , 'award' => array( 'gold'=> 8500 , 'exp' => 130 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 142
						),
					144 => array(
						'name' => '升至66级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至66级。' , 'award' => array( 'gold'=> 9000 , 'exp' => 140 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 143
						),
					145 => array(
						'name' => '升至67级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至67级。' , 'award' => array( 'gold'=> 9000 , 'exp' => 140 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 144
						),
					146 => array(
						'name' => '升至68级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至68级。' , 'award' => array( 'gold'=> 9000 , 'exp' => 140 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 145
						),
					147 => array(
						'name' => '升至69级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至69级。' , 'award' => array( 'gold'=> 9000 , 'exp' => 140 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 146
						),
					148 => array(
						'name' => '升至70级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至70级。' , 'award' => array( 'gold'=> 9000 , 'exp' => 140 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 147
						),
					149 => array(
						'name' => '升至71级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至71级。' , 'award' => array( 'gold'=> 10000 , 'exp' => 150 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 148
						),
					150 => array(
						'name' => '升至72级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至72级。' , 'award' => array( 'gold'=> 10000 , 'exp' => 150 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 149
						),
					151 => array(
						'name' => '升至73级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至73级。' , 'award' => array( 'gold'=> 10000 , 'exp' => 150 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 150
						),
					152 => array(
						'name' => '升至74级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至74级。' , 'award' => array( 'gold'=> 10000 , 'exp' => 150 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 151
						),
					153 => array(
						'name' => '升至75级' , 'describe' => '君上等级越高，所属城池税金、招募将领数量和攻获城池数量也越多，请君上升至75级。' , 'award' => array( 'gold'=> 10000 , 'exp' => 150 , 'prop' => array('recruit' , 0 , 2)),'pre_id' => 152
						),
					154 => array(
						'name' => '开启宝箱-1',
						'describe' => '宝箱珍藏着宝物，使用金钥匙能打开金宝箱，请君上一试！',
						'award' => array('gold' => 8000  , 'exp' => 30 , 'prop' => array('key' , 3 , 2)),
						'process' => '<br />1.点击导航中的',
						'process_1' => '按钮<br />2.进入背包界面点击宝箱<br />3.点击使用',
						'type' => 'overlordcommodity&amp;a=knapsack',
						'type_name' => '【背包】',
						'pre_id' => 7
					),
				)			
			);
		return $data;
	}
	/**
	 * 取得任务
	 * Enter description here ...
	 * $type 任务类型,主线或新手
	 */
   public static function getEvent() {
   		$data = self::getTaskList(); //总任务列表
   		
    	$uin = SessionInfo('uin');
		if(self::$task_info === null) {
	    	$key = 'task_' .$uin;
	    	//查询任务列表数据
			loadLib('App_Overlord_Query');
			$result = App_Overlord_Query::oneTask($uin);
			self::$task_info = isset($result['Value']) ? $result['Value']  : '';
    	}
    	if(self::$task_info === null) self::$task_info = '';
		
  	 	if(self::$user_info === null) {
	  	 	//君主信息
			$user_info = App_Overlord_Query::oneUser($uin);
			if (empty($user_info)){
				return View::error('获取君主信息失败.');
			}
			self::$user_info = isset($user_info['Value']) ? $user_info['Value']  : '';
    	}

    	if(self::$user_info === null) self::$user_info = '';
		$type = 'freshman';
		//还没有主线任务的时候
		if (!empty(self::$task_info)){
			if (empty(self::$user_info['task'])){
		   		$len = strlen(self::$task_info['freshman']['value']);
		   	
		   		$count = count($data[$type]);
		   		//新手任务10个,当完成就换主线任务
				if ($len == $count){
					$main = -1;
					//循环看是否新手任务是否已完成
					for ($i = 0 ; $i < $count; $i++){
						$k = self::getState($type , $i); 
						if( $k == 2 ) continue;
						$main = $i;
						break;
					}
					//$main 为空时说明所有任务已经完成,加入主线任务
					if ($main == -1){
						self::$task_info = null;
						$type = 'main';
						if (empty(self::$task_info[$type])){
							self::$task_info[$type] = array('value' => '' , 'state' => array());
							App_Overlord_Query::alterTask($uin , self::$list);
						}
					}
				}
			}else{
				$type = 'main';
			}
		}

	   	$total_event_num = count($data[$type]);		// 总任务数
		$events = array();	// 用来存3个任务
		
		for($i = 0 ; $i < $total_event_num ; $i++) {
			$s = self::getState($type , $i);

			if( $s == 2 ) continue;
		
			// 获取任务详情,比如叫getinfo
			$event_info = $data[$type][$i];
	
			// 详情里要存储一个 pre_id,用来表示必须完成哪个任务,该任务才能显示   比如要显示2这个任务,必须先完成1这个任务,那么pre_id就是1  （默认是0,就是没有需要先完成的任务）
			if( $event_info['pre_id'] != 0) {
				// 获取pre_id的任务完成状态
				$pre_id_s = self::getState($type , $event_info['pre_id']);

				if($pre_id_s != 2) {
					continue;
				}
				
			}
	
			$events[] = $i;	
			
			if( count($events) >= 5 )  break;	// 总共显示3个任务
		}
		
		return $events;
    }

    /**
     * 获取完成状态
     */ 
    public static function getState($type , $id) {
  
    	if(self::$list === null) {
    		$uin = SessionInfo('uin');
			if(self::$task_info === null) {		
		    	$key = 'task_' .$uin;
		    	//查询任务列表数据
				loadLib('App_Overlord_Query');
				$result = App_Overlord_Query::oneTask($uin);		
				self::$task_info = isset($result['Value']) ? $result['Value']  : '';
	
	    	}
			self::$list = isset(self::$task_info[$type]['value']) ? self::$task_info[$type]['value']  : '';
    	}
    	
    	if(self::$list === null) self::$list = '';
    	
		$state = strrev(self::$list);

    	return substr($state,$id,1);
    }
    /**
     * 修改完成状态
     * Enter description here ...
     * @param unknown_type $id
     * @param unknown_type $code
     */
    public static function setState($type , $id , $codes) {
	  	//任务从1开始
	  	$id += 1;
	    $uin = SessionInfo('uin');
	    $key = 'task_' .$uin;
	    //查询任务列表数据
		loadLib('App_Overlord_Query');
		$result = App_Overlord_Query::oneTask($uin);
    	
		$state = isset($result['Value'][$type]['value']) ? $result['Value'][$type]['value']  : '';
		
		//取一个没有改变的任务值
		$tasklist = isset($result['Value'][$type]['value']) ? $result['Value'][$type]['value']  : '';
	    if( strlen($state) < $id ) {
	           // 补0
	        $state = str_repeat('0' , $id - strlen($state) ) . $state;
	    }
	
	    // 现在$state 是  0002 ,然后你把字符串反转
	    $state = strrev($state);
	    // 现在 $state 是 2000 , 然后把第$id位改成 $code
	    $state[$id - 1] = $codes;

	    // 反转回来
	    $result['Value'][$type]['value'] = isset($result['Value'][$type]['value']) ? strrev($state) : '';

	    $code = App_Overlord_Query::alterTask($uin , $result['Value']);
	    self::$list = null;
	    self::$task_info = null;
	    self::$user_info = null;
    	//判断是不是到了新手的第7个任务
	    if ($type == 'freshman'){
	    	/*
	    	$len = self::getEvent();
	    	//比较有没接到任务
	    	$k = in_array(6, $len);
	   	
	    	$task_state = self::getState($type, 6);
	    	
	    	if (!empty($k) && empty($task_state)){ //收复任务,攻打黄巾军
	    		
	    		if (empty($task_state)){
	    			$city_info = App_Overlord_Query::getOneOverlord('app_overlord_city', 'city_' . $uin);
			   		if (empty($city_info)){
			  	 		return View::error('数据异常!!!');
		    		}
	    		
		   			$city_info['Value']['hkee']['to_uin'] = -1;
	   				$city_info['Value']['hkee']['generals'] = '';
	  				App_Overlord_Query::getAlterOverlord('app_overlord_city', 'city_' . $uin , $city_info['Value']);
	    		}
	    	}
	    	*/
	    }elseif ($type == 'main'){
	    	//触发主线任务
	    	if (empty($tasklist)){
	    		$result['Value'][$type]['state'] = array();
	    	}
	    }
	}
    
}
#end of scirpt